/**
 * Created with JetBrains PhpStorm.
 * User: Administrator
 * Date: 13-9-13
 * Time: 下午2:56
 * To change this template use File | Settings | File Templates.
 */

function chagou(classN,srcs){
    var es = document.getElementsByClassName(classN);
    if(es.length == 0)return false;
    for(var i=0;i<es.length;i++){
        if(es[i].innerHTML == 1){
            es[i].innerHTML = '<img src="'+srcs+'/Public/images/gou.gif" />';
        }else if(es[i].innerHTML == 0){
            es[i].innerHTML = '<img src="'+srcs+'/Public/images/cha.gif" />';
        }
    }
}